package cn.stylefeng.guns.modular.hx.basic.service;

import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.basic.entity.HxBasicGoodsCode;
import cn.stylefeng.guns.modular.hx.basic.model.params.HxBasicGoodsCodeParam;
import cn.stylefeng.guns.modular.hx.basic.model.result.HxBasicGoodsCodeResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商品分类 服务类
 * </p>
 *
 * @author zhucx
 * @since 2024-01-10
 */
public interface HxBasicGoodsCodeService extends IService<HxBasicGoodsCode> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    void add(HxBasicGoodsCodeParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    void delete(HxBasicGoodsCodeParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    void update(HxBasicGoodsCodeParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    HxBasicGoodsCodeResult findBySpec(HxBasicGoodsCodeParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2024-01-10
     */
    List<HxBasicGoodsCodeResult> findListBySpec(HxBasicGoodsCodeParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2024-01-10
     */
     LayuiPageInfo findPageBySpec(HxBasicGoodsCodeParam param,String condition,Long operateId);

	List<HxBasicGoodsCodeResult> likePids(Integer id);

	List<ZTreeNode> tree(HxBasicGoodsCodeParam hxBasicGoodsCodeParam);

}
